package name.gauravmadan.mdg.pim;

import java.io.Serializable;

public class Association implements Serializable {

	private static final long serialVersionUID = -9083867242957729713L;
	
	public final String AGGREGATION = "Aggregation";
	public final String COMPOSITION = "Composition";
	public final String ONE_TO_ONE = "OneToOne";
	public final String ONE_TO_MANY = "OneToMany";
	
	private Integer id;
	private String associationType;
	private String associationMultiplicity;
	private Integer containedClassId;
	private String attributeName;
	private String foreignKeyAttributeName;
	private String foreignKeyColumnName;
	private Integer containerClassId;
	
	public Association()
	{
		super();
	}
	public Association(Integer id, String associationType, String associationMultiplicity,
			String foreignKeyAttributeName, String foreignKeyColumnName,
			String attributeName, Integer containedClassId, Integer containerClassId) {
		super();
		this.id = id;
		this.associationType = associationType;
		this.associationMultiplicity = associationMultiplicity;
		this.containedClassId = containedClassId;
		this.attributeName = attributeName;
		this.foreignKeyAttributeName = foreignKeyAttributeName;
		this.foreignKeyColumnName = foreignKeyColumnName;
		this.containerClassId = containerClassId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getAssociationType() {
		return associationType;
	}
	public void setAssociationType(String associationType) {
		this.associationType = associationType;
	}
	public Integer getContainedClassId() {
		return containedClassId;
	}
	public void setContainedClassId(Integer containedClassId) {
		this.containedClassId = containedClassId;
	}
	public Integer getContainerClassId() {
		return containerClassId;
	}
	public void setContainerClassId(Integer containerClassId) {
		this.containerClassId = containerClassId;
	}
	public String getAssociationMultiplicity() {
		return associationMultiplicity;
	}
	public void setAssociationMultiplicity(String associationMultiplicity) {
		this.associationMultiplicity = associationMultiplicity;
	}
	public String getAttributeName() {
		return attributeName;
	}
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}
	public String getForeignKeyAttributeName() {
		return foreignKeyAttributeName;
	}
	public void setForeignKeyAttributeName(String foreignKeyAttributeName) {
		this.foreignKeyAttributeName = foreignKeyAttributeName;
	}
	public String getForeignKeyColumnName() {
		return foreignKeyColumnName;
	}
	public void setForeignKeyColumnName(String foreignKeyColumnName) {
		this.foreignKeyColumnName = foreignKeyColumnName;
	}

	
}
